package com.wuliang.generate.common.core.valudator;

import com.wuliang.generate.common.core.annotation.CheckJoinParam;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @author 邬魉
 */
public class ParamValidator implements ConstraintValidator<CheckJoinParam, Method> {

    private List<String> checkParamNameList;

    @Override
    public void initialize(CheckJoinParam constraintAnnotation) {
        checkParamNameList = new ArrayList<>();
        checkParamNameList.addAll(Arrays.asList(constraintAnnotation.value()));
    }

    @Override
    public boolean isValid(Method method, ConstraintValidatorContext context) {

        return false;
    }


}
